package leetcode;

import java.util.Arrays;

public class Pro0102 {

    public static void main(String[] args) {

    }

    public boolean CheckPermutation(String s1, String s2) {

        char[] arr1 = s1.toCharArray();
        Arrays.sort(arr1);
        char[] arr2 = s2.toCharArray();
        Arrays.sort(arr2);
        return Arrays.equals(arr1, arr2);
    }
}
